extends Node

signal on_create_block_text(unit: Node2D)
signal on_create_damage_text(unit: Node2D, hitbox: HitBoxComponent)

const FLASH_MATERIAL = preload("uid://3vfdn2s04dv")
const FLOATING_TEXT_SCENE = preload("uid://ck21dwu6m885x")


enum UpgradeTier {
	COMMON,
	RARE,
	EPIC,
	LEGENDARY,
}

var player: Player


func get_chance_success(chance: float) -> bool:
	var random := randf_range(0, 1.0)
	if chance > random:
		return true
	
	return false
